package Object_study;

public class Objec_study2 {
    public static void main(String[] args) {
        Person a= new Person("王多鱼",18);
        Person b= new Person("刘二狗",34);
        Person c = new Person("王多鱼",18);
        System.out.println(a.equals(b));
        //false
        System.out.println(a.equals(c));
        //true
    }
}
